﻿<Framework:Report x:Class="MicrosoftVisualStudioScrum10Detailed.MicrosoftVisualStudioScrum10DetailedTemplate"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:Framework="clr-namespace:ReportingFramework;assembly=ReportingFramework"
            xmlns:MicrosoftVisualStudioScrum10Detailed="clr-namespace:MicrosoftVisualStudioScrum10Detailed"
            xmlns:Converters="clr-namespace:MicrosoftVisualStudioScrum10Detailed.Converters"
            mc:Ignorable="d">
    
    <Framework:Report.Resources>
        <!-- 
          Converters
    -->
        <Converters:ParentIdConverter x:Key="parentIdConverter"/>
        <Converters:BacklogPriorityConverter x:Key="backlogPriorityConverter"/>
        <Converters:RemainingWorkConverter x:Key="remainingWorkConverter"/>
        <Converters:DescriptionConverter x:Key="descriptionConverter"/>
        <Converters:EffortConverter x:Key="effortConverter"/>
        <Converters:ReproStepsConverter x:Key="reproStepsConverter"/>
        <Converters:PriorityConverter x:Key="priorityConverter"/>
        <Converters:AutomationConverter x:Key="automationConverter"/>
        <Converters:StartConverter x:Key="startConverter"/>
        <Converters:FinishConverter x:Key="finishConverter"/>
        <Converters:UnknownTypeConverter x:Key="unknownTypeConverter"/>

        <!-- 
          This template defines how each page is rendered.
    -->
        <ControlTemplate x:Key="Report.Frame" TargetType="ContentControl">
            <Grid Margin="50" Grid.IsSharedSizeScope="True">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <!-- Page Header -->
                <Border Grid.Row="0" BorderThickness="0,0,0,1" Padding="0,0,0,10" BorderBrush="#999999" DockPanel.Dock="Top">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="Task Card Creator 2010" FontWeight="Bold" FontSize="12pt" />
                        <TextBlock Grid.Column="1" Text="{Binding Path=ReportDate}" VerticalAlignment="Bottom" />
                    </Grid>
                </Border>

                <!-- Page Body -->
                <Border Grid.Row="1" Margin="0,5,0,5">
                    <DockPanel>
                        <!-- Records -->
                        <ContentPresenter />
                    </DockPanel>
                </Border>

                <!-- Page Footer -->
                <Border Grid.Row="2" BorderThickness="0,1,0,0" Padding="0,10,0,0" BorderBrush="#999999" DockPanel.Dock="Bottom">
                    <TextBlock Text="{Binding Path=PageNumber, StringFormat='Page {0}'}" HorizontalAlignment="Center" FontWeight="Bold" />
                </Border>
            </Grid>
        </ControlTemplate>

        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:TaskCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="#FFDF7F" Margin="0" Width="300" BorderBrush="#FFC000"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Task {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Priority: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource backlogPriorityConverter}}" FontSize="8pt" />
                            </DockPanel>
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="#FFC000"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" TextTrimming="CharacterEllipsis"/>
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal">
                            <DockPanel>
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="Estimate: " FontSize="14pt" />
                                <TextBlock Text="{Binding Path=WorkItem, Converter={StaticResource remainingWorkConverter}}" FontSize="14pt" />
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Right"  Text="Assigned To:" FontSize="14pt" Margin="70,0,10,0" />
                            </DockPanel>
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:ProductBacklogItemCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="#B9CDE5" Margin="0" Width="300" BorderBrush="#385D8A"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Backlog Item {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Priority: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource backlogPriorityConverter}}" FontSize="8pt" />
                            </DockPanel>
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="#385D8A"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" />
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal">
                            <TextBlock Text="{Binding Path=WorkItem, Converter={StaticResource effortConverter}}" FontSize="14pt" />
                            <TextBlock Text=" points" FontSize="14pt" />
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:BugCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="#FF7F7F" Margin="0" Width="300" BorderBrush="#C00000"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Bug {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Priority: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource backlogPriorityConverter}}" FontSize="8pt" />
                            </DockPanel>
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="#C00000"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt"/>
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource reproStepsConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal">
                            <DockPanel>
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="Estimate: " FontSize="14pt" />
                                <TextBlock Text="{Binding Path=WorkItem, Converter={StaticResource effortConverter}}" FontSize="14pt" />
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Right"  Text="Assigned To:" FontSize="14pt" Margin="70,0,10,0" />
                            </DockPanel>
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:ImpedimentCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="RosyBrown"  Margin="0" Width="300" BorderBrush="Brown"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Impediment {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Priority: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource priorityConverter}}" FontSize="8pt" />
                            </DockPanel>
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="Brown"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" />
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Orientation="Horizontal">
                            <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                                <TextBlock Text="Assigned To:" FontSize="14pt" HorizontalAlignment="Right" Margin="10,0,0,0" />
                            </StackPanel>
                            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="60,0" />
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.AreaPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:TestCaseCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="DarkSeaGreen"  Margin="0" Width="300" BorderBrush="DarkGreen"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Test Case {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Priority: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource priorityConverter}}" FontSize="8pt" />
                            </DockPanel>
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="DarkGreen"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" />
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal" HorizontalAlignment="Stretch">
                            <Grid HorizontalAlignment="Stretch">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition/>
                                    <ColumnDefinition/>
                                    <ColumnDefinition Width="30"/>
                                    <ColumnDefinition/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" HorizontalAlignment="Left" Text="State: " FontSize="14pt" />
                                <TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.State}" FontSize="14pt" />
                                <TextBlock Grid.Column="3" HorizontalAlignment="Right" Text="{Binding Path=WorkItem, Converter={StaticResource automationConverter}}" FontSize="14pt" />
                            </Grid>
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:SharedStepsCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="SandyBrown"  Margin="0" Width="300" BorderBrush="Goldenrod"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Shared Steps {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Priority: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource priorityConverter}}" FontSize="8pt" />
                            </DockPanel>
                            <DockPanel HorizontalAlignment="Right">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="Goldenrod"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" />
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal">
                            <TextBlock Text="State: " FontSize="14pt" />
                            <TextBlock Text="{Binding Path=WorkItem.State}" FontSize="14pt" />
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>
        
        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:SprintCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="CadetBlue"  Margin="0" Width="300" BorderBrush="DarkCyan"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <DockPanel  Margin="10" >
                        <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.Id, StringFormat='Sprint Item {0}'}" FontSize="13pt" FontWeight="Bold" />
                        <StackPanel VerticalAlignment="Bottom" Orientation="Vertical">
                            <DockPanel HorizontalAlignment="Right" VerticalAlignment="Bottom">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Right" Text="Parent: " FontSize="8pt"/>
                                <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource parentIdConverter}}" FontSize="8pt" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="DarkCyan"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" />
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal" HorizontalAlignment="Stretch">
                            <Grid HorizontalAlignment="Stretch">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition/>
                                    <ColumnDefinition/>
                                    <ColumnDefinition Width="10"/>
                                    <ColumnDefinition/>
                                    <ColumnDefinition/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Bottom" Text="Start: " FontSize="13pt" />
                                <TextBlock Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" MinWidth="80" MaxWidth="90" Text="{Binding Path=WorkItem, Converter={StaticResource startConverter}}" FontSize="12pt" />
                                <TextBlock Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Bottom" Text="Finish: " FontSize="13pt" />
                                <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" MinWidth="80" MaxWidth="90" Text="{Binding Path=WorkItem, Converter={StaticResource finishConverter}}" FontSize="12pt" />
                            </Grid>
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>        
        
        <DataTemplate DataType="{x:Type MicrosoftVisualStudioScrum10Detailed:UnknownCardRow}">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="LightGray"  Margin="0" Width="300" BorderBrush="Black"  BorderThickness="2,2,2,0" CornerRadius="16,16,0,0">
                    <StackPanel>
                        <TextBlock Margin="10" DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem, Converter={StaticResource unknownTypeConverter}}" FontSize="13pt" FontWeight="Bold" />
                    </StackPanel>
                </Border>
                <Border Grid.Row="1" Margin="0" Width="300"  BorderBrush="Black"  BorderThickness="2,0,2,2" CornerRadius="0,0,16,16">
                    <StackPanel>
                        <TextBlock Margin="10,5,10,0" Text="{Binding Path=WorkItem.Title}" TextWrapping="Wrap" Height="50" FontSize="13pt" />
                        <TextBlock Margin="10,0" Text="{Binding Path=WorkItem, Converter={StaticResource descriptionConverter}}" TextWrapping="Wrap" Height="110" FontSize="10pt" TextTrimming="CharacterEllipsis"/>
                        <StackPanel Margin="10,0" Orientation="Horizontal">
                            <TextBlock Text="State: " FontSize="14pt" />
                            <TextBlock Text="{Binding Path=WorkItem.State}" FontSize="14pt" />
                        </StackPanel>
                        <StackPanel Margin="10,5" Orientation="Horizontal">
                            <DockPanel Margin="0,0,5,0">
                                <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left" Text="{Binding Path=WorkItem.IterationPath}" FontSize="11pt" />
                            </DockPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>
        </DataTemplate>

    </Framework:Report.Resources>
</Framework:Report>
